#include <stdio.h>
#include "SDL_rwnull.h"

int main(int argc, char *argv[])
{
  SDL_RWops *rwn=SDL_RWFromNULL();
  char buf[16];

  if(rwn==NULL)
  {
    fprintf(stderr,"Couldn't create NULL rwops\n");
    return(1);
  }

  SDL_RWseek(rwn,5,SEEK_SET);
  SDL_RWread(rwn,buf,1,1);
  SDL_RWwrite(rwn,buf,1,1);
  SDL_RWclose(rwn);
  return(0);
}
